package com.it.dao;

import com.it.VO.ArticleOV;
import com.it.domain.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper {

    int AddArticle(Article article);

    List<Article> GetAll();

    List<Article> SelectByAuthorId(Integer authorId);

    Article SelectById(Integer id);

    int DeleteById(Integer id);

    int DeleteByAuthorId(Integer authorId);

    int UpdateArticle(Article article);

}
